package com.example.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-03-28
 */
@TableName("exam.notice")
public class Notice implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String head;

    private String body;

    @TableField("`from`")
    private String from;

    /**
     * classCode
     */
    @TableField("`to`")
    private String to;

    private LocalDateTime overTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public LocalDateTime getOverTime() {
        return overTime;
    }

    public void setOverTime(LocalDateTime overTime) {
        this.overTime = overTime;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ", head=" + head +
                ", body=" + body +
                ", from=" + from +
                ", to=" + to +
                ", overTime=" + overTime +
                "}";
    }
}
